﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ListAlbum.aspx.cs" Inherits="Event.List2" %>

<%@ Register Src="~/Controls/Album/ListAlbum.ascx" TagName="ListAlbum" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Album/ListAllPhoto.ascx" TagName="ListAllPhoto" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Common/Paging.ascx" TagName="Paging" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="clearfix">
        <%--round index (vòng 1 2 3 ...)--%>
        <div class="box round-index fl">
            <label>
                VÒNG
            </label>
            <a id="round-1" href="<%= _linkRound[0] %>">1</a>
            <asp:PlaceHolder ID="phRound2" Visible="false" runat="server"><a id="round-2" href="<%= _linkRound[1] %>">
                2</a> </asp:PlaceHolder>
            <asp:PlaceHolder ID="phRound3" Visible="false" runat="server"><a id="round-3" href="<%= _linkRound[2] %>">
                3</a> </asp:PlaceHolder>
        </div>
        <%--box search--%>
        <div class="search fr">
            <input id="txtSearch" class="text" type="text" value="nhập tên thí sinh" onkeypress="return sEnterResult(event);"
                onfocus="if (this.value=='nhập tên thí sinh') { this.value=''; }" onblur="if (this.value=='') { this.value='nhập tên thí sinh'; }" />
            <input class="button" type="submit" value="" />
        </div>
    </div>
    <div class="hr mgt20">
    </div>
    <div class="clearfix mgt20">
        <%--search rules ( mới nhất | a-z , top vote)--%>
        <ul class="fl menu2 inline">
            <asp:PlaceHolder ID="phIsWin" Visible="false" runat="server">
                <li id="r-menu-qua-vong"><a href="/bai-du-thi/vong-<%= _round %>/qua-vong.htm">TOP 30</a></li>
            </asp:PlaceHolder>
            <asp:PlaceHolder ID="phMoiNhat" Visible="false" runat="server">
            <li id="r-menu-moi-nhat"><a href="/bai-du-thi/vong-<%= _round %>/moi-nhat.htm">MỚI NHẤT</a></li>
            </asp:PlaceHolder>
            <li id="r-menu-ten"><a href="/bai-du-thi/vong-<%= _round %>/ten.htm">A - Z</a></li>
            <asp:PlaceHolder ID="phFollowVote" Visible="false" runat="server">
                <li id="r-menu-vote" class="last"><a href="/bai-du-thi/vong-<%= _round %>/vote.htm">
                    TOP VOTE</a></li>
            </asp:PlaceHolder>
        </ul>
        <%--display rules (dạng bảng, dạng cột ..)--%>
        <div class="fr">
            <a title="Danh sách bài dự thi" href="/bai-du-thi/vong-<%= _round %>/ten.htm" class="switch cell-layout mgr10">
            </a><a id="s-menu-photo" title="Xem tất cả hình ảnh" href="/photo/vong-<%= _round %>.htm"
                class="switch column-layout"></a>
        </div>
    </div>
    <div class="clearfix mgt25">
        <%--list--%>
        <uc:ListAlbum ID="ctrListAlbum" Visible="false" runat="server" />
        <asp:Literal ID="ltrNoAlbum" Visible="false" runat="server"></asp:Literal>
        <uc:ListAllPhoto ID="ctrListAllPhoto" Visible="false" runat="server" />
    </div>
    <div class="hr mgt20">
    </div>
    <%--paging--%>
    <p class="paging text-center mgt46">
        <uc:Paging ID="ctrPaging" Visible="false" runat="server" />
    </p>
    <div class="hr mgt48">
    </div>
    <p id="back-top">
        <a href="#top"><span></span></a>
    </p>
    <%--quảng cáo--%>
    <div class="pt10 pb10 mb20" style="height: 120px;">
        <div class="fl mr20">
            <div id="advLeft">
            </div>
            <asp:Literal ID="ltrAdvLeft" runat="server" />
        </div>
        <div class="fl">
            <a rel="nofollow" target="_blank" href="http://equest.edu.vn/home/201307151292/equest/tin-tuc-su-kien/super-scoring-da-co-mat-tai-equest-tp.hcm.html">
                <img alt="" src="/images/equest-460x120.gif" />
            </a>
        </div>
    </div>
    <script type="text/javascript">
        $('.list').each(function () {
            var items = $(this).find('li');
            if (items) {
                items.each(function () {
                    if ((items.index($(this)) + 1) % 4 == 0 || items.index($(this)) + 1 == items.length) {
                        $(this).addClass("last").after("<div class='clr'></div>");

                    }
                    var sapo = $(this).find('.sapo');
                    if (sapo) {
                        $(this).hover(function () {
                            sapo.stop(true, true).fadeToggle();
                        });
                    }
                });
            }
        });

        var activeRMenu = '<%= _order %>';
        if (activeRMenu != '') $('#r-menu-' + activeRMenu).addClass('active');

        function sEnterResult(e) {
            if (typeof e == 'undefined' && window.event) { e = window.event; }
            if (e.keyCode == 13) {
                var s = $('#txtSearch').val();
                var url = window.location.href.split('?')[0];
                window.location = "/bai-du-thi/tim-kiem.htm?k=" + s + "&round=<%= _round %>";
            }

        }
        var checkRound = '<%= _round %>';
        $('#round-' + checkRound).addClass("active");
        var checkPhoto = '<%= _photos %>';
        if (checkPhoto == 'True') $('#s-menu-photo').addClass("active");
        else $('#s-menu-photo').prev().addClass("active");

        $('ul.menu2').children().first().addClass('first');
    </script>
</asp:Content>
